package git.yyge.test.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


@Data
@TableName("student") // 对应数据库表名
public class Student {

   @TableId(type = IdType.AUTO)
   private Integer id;  //数字ID
//    @TableField(value = "")
   private String name;  //学生姓名
   private Integer sex;  //性别 0=男 1=女
   private Integer age;  //年龄
   private Integer classNum;  //班级
}

//@Data

//public class User {
//    @TableId(type = IdType.AUTO)
//    private Long id;
//    private String name;
//    private Integer age;
//    private String email;
//}